const mongoose = require('mongoose')
const userSchema = mongoose.Schema({
    "name":String,
    "password":String,
    "nick":String,
    "phone":String,
    "idCard":String,
    "address":[String],
    "registrationDate":Date,
    "customerType":String,
    "companyName":String,
    "creditScore":Number,
    "lastRentDays":Number,
    "referralCode":String,
    "status":String,
    "picture":String,
    "newMessage":Boolean
})
module.exports = mongoose.model('users', userSchema, 'users')